package com.zjy.org.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zjy.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import javax.validation.constraints.NotEmpty;

/**
 * 实体类：
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Shop extends BaseDomain implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotEmpty
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;

    @NotEmpty
    @Excel(name = "店铺电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") //注意格式，双引号内空格都不能有
    @Excel(name = "注册时间" ,orderNum = "3", width = 30, exportFormat="yyyy-MM-dd", isImportField = "true_st")
    private Date registerTime = new Date();

    /**
     * 待审核 审核通过 驳回
     */
    @Excel(name = "店铺状态" ,orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;

    @NotEmpty
    @Excel(name = "店铺地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    private String logo;
    private Long adminId;
    private Employee manager; //店铺管理员

}
